
package com.dhcc.bpm.modules.alarm.vo;

import com.dhcc.bpm.modules.alarm.entity.Alarm;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @ClassName AlarmVO
 * @Description 告警表视图实体类
 * @Author sjm
 * @Date 2020/2/21 0021 15:16
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 **/
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "AlarmVO对象", description = "告警表")
public class AlarmVO extends Alarm {
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "租户编号")
	private String tenantId;

	@ApiModelProperty(value = "产品名称")
	private String productName;

	@ApiModelProperty(value = "api名称")
	private String apiName;

	@ApiModelProperty(value = "通知方式")
	private String noticeMethod;

	@ApiModelProperty(value = "告警来源")
	@JsonSerialize(using = ToStringSerializer.class,nullsUsing = NullSerializer.class)
	private Long alarmSource;
}
